import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'home',
            component: () =>
                import ('@/views/Home.vue'),
            children: [{
                    path: '/sy',
                    component: () =>
                        import ('@/components/index/sy')
                },
                {
                    path: '/sp',
                    component: () =>
                        import ('@/components/index/sp')
                },
                {
                    path: '/wm',
                    component: () =>
                        import ('@/components/index/wm')
                },
                {
                    path: '/dd',
                    component: () =>
                        import ('@/components/index/dd')
                }
            ]
        },
        // {
        //     path: '/xq',
        //     component: () =>
        //         import ('@/components/xq')
        // },
    ]
})